// 产品接口定义
export interface Product {
  id: number;
  name: string;
  code: string;
  category: string;
  status: '规划中' | '开发中' | '测试中' | '已上线';
  progress: number;
  manager: string;
  description?: string;
  startDate?: string;
  endDate?: string;
  createdAt: string;
  updatedAt?: string;
}

// 产品API请求参数接口
export interface GetProductsParams {
  page?: number;
  pageSize?: number;
  search?: string;
  category?: string;
  status?: string;
}

// 产品统计接口
export interface ProductStats {
  total: number;
  byStatus: Record<string, number>;
  byCategory: Record<string, number>;
}

// 产品需求统计接口
export interface ProductRequirementsStats {
  productName: string;
  total: number;
  completed: number;
  inProgress: number;
  pending: number;
}

// 产品进度概览接口
export interface ProductProgressOverview {
  productName: string;
  completed: number;
  remaining: number;
}